<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller 
{

	function index()
	{	
		$this->lang->load('home', $this->config->item('language'));
		
		// définition des données variables du template
	    
	    $data['title'] = 'Le titre de la page';
	    $data['description'] = 'La description de la page pour les moteurs de recherche';
	    $data['keywords'] = 'les, mots, clés, de, la, page';
	    
		//contenu de la table home_about
		$this->load->model('home_model');
		$data['about'] = $this->home_model->home_about();	
		
		//contenue de la table home_slider
		
		$this->load->model('admin_model');
		$data['slider'] = $this->admin_model->home_slider();
	    // on charge la view qui contient le corps de la page
	    $data['content'] = 'home';
		
		//contenu service 
		$this->load->model('admin_model');
		$data['results'] = $this->admin_model->home_service();	
		
	    // on charge la page dans le template
	    $this->load->view('template/head', $data);
	    $this->load->view('template/template', $data);
	    $this->load->view('template/footer', $data);
	}
}

/* End of file home.php */
/* Location: ./application/controllers/welcome.php */